package com.wanho.java157.SystemSetting.mapper;

import com.wanho.java157.SystemSetting.po.Employee;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import static org.junit.Assert.*;
@RunWith(SpringRunner.class)
@ContextConfiguration({"classpath:spring/applicationContext.xml","classpath:spring/applicationContext-springmvc.xml"})
@WebAppConfiguration
public class EmployeeMapperTest {

    @Autowired
    private EmployeeMapper employeeMapper;
    @Test
    public void selectEmployeeByEmployeeId() {
        Employee employee = employeeMapper.selectEmployeeByEmployeeId("5");
        System.out.println(employee);
    }
}